home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
tools
/
czesc_2
/
jm
/
docs
/
jmrexx.doc
< prev
next >
Wrap
Text File
|
1992-04-04
|
7KB
|
331 lines
JM ARexx Reference Guide
A Task Management System for the Amiga
Version 1.1
(Copyright) 1992
Steve Koren
April 4, 1992
Table of Contents
Introduction to the JM......................................3
Example Use.................................................3
ARexx Reference.............................................3
JM Job Management Page 2 ARexx Reference
Introduction to the JM ARexx Server
By default, the JM server starts an ARexx port when the server
starts. This port allows external programs to query the state
of the JM server and the Amiga system, and to change certain
values. This document describes JM ARexx commands.
Example Use
The following short ARexx program provides an example of how
to access returned values from JM ARexx commands.
/* Sample ARexx program to query system load average */
options results /* we want to hear about results */
address jmserver /* connect to JM server's ARexx port */
sysload /* figure out idle cpu time */
load = result /* we get: load average times 100 */
say "System load average is approx:" load/100
The "options results" command must be present to tell ARexx to
listen for return values from JM commands. "address jmserver"
connects to JM's ARexx port. "sysload" calls the appropriate
JM ARexx command. (One could also use "address jmserver sys-
load" if only one command is to be executed from JM's ARexx
port). The "sysload" command could be used, for example, to
take various actions in another application's ARexx script de-
pending on the Amiga's load average.
Several other short example ARexx programs are included with
JM. Future versions of JM may be able to send outgoing ARexx
message if certain system conditions become true (such as, CPU
load goes above or below a given number, etc). A future ex-
tention may also permit specific task information to be deter-
mined though the ARexx port. These abilities are not preset
in JM 1.1.
ARexx Reference
NUM_START - Returns the number of tasks started since
the JM server was invoked.
NUM_FINISH - Returns the number of tasks finished since
the JM server was invoked.
IDLE_CPU - Returns the idle CPU %, multiplied by 100.
For example, "50" would be 50%, etc.
MIN_MANAGE_PRI - Returns the JM minimum manage priority
level. With one optional numeric argu-
JM Job Management Page 3 ARexx Reference
ment, sets the same.
MAX_MANAGE_PRI - Returns the JM maximum manage priority
level. With one optional numeric argu-
ment, sets the same.
TOT_IDLE_CPU - Returns the total idle CPU time since the
JM server was invoked, in 1/60s of a sec-
ond for NTSC systems, and 1/50s for PAL.
TOT_USED_CPU - Similar to TOT_IDLE_CPU, but for used CPU
time.
VBLANK - Returns "60" for an NTSC system, and "50"
for PAL. Useful with TOT_IDLE_CPU and
TOT_USED_CPU to convert them into
hours/minutes/seconds.
QUANTUM - Returns the JM time quantum in 1/10ths of
a second. (Ie., 5 is 1/2 second, etc).
With one optional numeric argument, sets
the same.
MANAGED_NUM - Returns the number of tasks currently un-
der JM task management, or the number
which would be if management was turned
on.
MANAGESWITCH - Returns "on" or "off" corresponding to the
value of JM task management. With one op-
tional parameter, sets the manage switch
to that value.
LOGSWITCH - Returns "on" or "off" corresponding to the
value of JM task logging. With one op-
tional parameter, sets logging to that
value.
LOGFILE - Returns the JM log file name.
LOGFAILED - Returns the number of failed logging at-
tempts by the JM server.
WATCHSWITCH - Returns "on" or "off" corresponding to the
value of the JM task watch switch. With
one optional parameter, sets the watch
switch to that value.
INSTALL_DELAY - Returns the value of the JM task install
delay (see JM.doc for details), in 10ths
of a second. (5 is 1/2 second, etc).
With one optional numeric argument, sets
the same.
JM Job Management Page 4 ARexx Reference
SYSLOAD - Returns the system load average for the
past 10 seconds, multiplied by 100. (Ie,
100 is a load of 1, etc).
READ_RC - Returns nothing, but instructs the JM
server to re-read the .jmrc file.
JM Job Management Page 5 ARexx Reference